package cn.wolfcode.wolf2w.repository;


import cn.wolfcode.wolf2w.domain.UserInfo;
import cn.wolfcode.wolf2w.domain.Visit;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

/**
 * 访客持久层接口
 */
@Repository
public interface VisitRepository extends MongoRepository<Visit, String>{

    //根据窝id查询访客
    Optional<Visit> findByWoId(String woid);

}
